
cd /d %~dp0

esptool -p com3 erase_flash || esptool.py -p com3 erase_flash 

TIMEOUT -T 3

set oneFIle=firmware.bin

esptool -p com3 -b 460800 --chip esp32 write_flash 0x0 e-%oneFIle% || esptool.py --chip esp32 write_flash 0x0 e-%oneFIle%

pause